home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1995 September
/
JCSM Shareware Collection (September 30th 1995 Author to Vendor Edition) (JCS Distribution).ISO
/
acctfinc
/
10860c01.ziv
/
OBBK21.EXE
/
INSTALLB.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-03-08
|
7KB
|
150 lines
Echo Off
REM ******************************************************
REM * File : Install.bat
REM * Author : Stephen Williams
REM * Date : Sept. 3, 1992
REM * Revised: Mar. 8, 1993
REM * Purpose: Installation - OWL BASIC BOOKKEEPING Ver 2.x
REM ******************************************************
if "%1" == "" goto help
if "%1" == "?" goto help
if "%1" == "A:" goto help
if "%1" == "a:" goto help
if "%1" == "B:" goto help
if "%1" == "b:" goto help
if "%1" == "A" goto help
if "%1" == "a" goto help
if "%1" == "B" goto help
if "%1" == "b" goto help
for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1.==%%f. goto Help
for %%f in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:) do if %1.==%%f. goto Help
for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:) do if %1.==%%f. goto Help
for %%f in (X:,x:,Y:,y:,Z:,z:) do if %1.==%%f. goto Help
REM **************************
REM HARD DISK INSTALLATION
REM **************************
if not exist %1:\nul goto help
if not exist BBK_EXE.EXE goto BadDef
if not exist BBK_DAT.EXE goto BadDef
if not exist README.BBK goto BadDef
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ │
Echo │ OWL BASIC BOOKKEEPING INSTALLATION │
Echo │ │
Echo │ Install Main Program & Help Files on %1:\OWL │
Echo │ │
if exist %1:\OWL\BBK.EXE goto ExistEXE
if exist %1:\OWL\BBK2.DBF goto ExistEXE
if exist %1:\OWL\BBHELP.DBF goto ExistEXE
if exist %1:\OWL\BBHELP.DBT goto ExistEXE
if exist %1:\OWL\ORDERB.DOC goto ExistEXE
:InsMain
Echo └──────────────────────────────────────────────────────┘
Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
BBK_EXE %1:\OWL
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ │
Echo │ OWL BASIC BOOKKEEPING INSTALLATION │
Echo │ │
Echo │ Installing Sample Data Files on %1:\OWL │
Echo │ │
if exist %1:\OWL\ACC.DBF goto ExistDat
if exist %1:\OWL\INC.DBF goto ExistDat
if exist %1:\OWL\EXP.DBF goto ExistDat
:InsDat
Echo └──────────────────────────────────────────────────────┘
Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
BBK_DAT %1:\OWL
COPY README.bbk %1:\OWL\README.bbk
%1:
CD \OWL
goto End
:ExistEXE
Echo │ IMPORTANT: Program already exists on your system. │
Echo │ │
Echo │ When Prompted: Overwrite [Y/N] │
Echo │ │
Echo │ Press Y if you are upgrading from an earlier version │
Echo │ or want to reinstall the program. │
Echo │ │
Echo │ Press N to retain your existing program & help files.│
goto InsMain
:ExistDat
Echo │ IMPORTANT: Data files already exist on your system. │
Echo │ │
Echo │ When Prompted: Overwrite [Y/N] │
Echo │ │
Echo │ Press N to retain your existing data files. │
Echo │ │
Echo │ Press Y to replace your existing data files with the │
Echo │ sample data files. │
goto InsDat
:BadDef
CLS
Echo ┌────────────────────────────────────────────────────────────────┐
Echo │ OWL Basic Bookkeeping 2.X - Installation HELP │
Echo │ │
Echo │ INSTALLB must be run from the drive where INSTALL.BAT resides. │
Echo │ │
Echo │ If you are installing BASIC BOOKKEEPING from a floppy disk in │
Echo │ drive A type "A:" before running INSTALLB. │
Echo │ │
Echo │ Example: A: (Set Default To Drive A) │
Echo │ INSTALLB C (Install Program on drive C) │
Echo │ │
Echo │ PROGRAM NOT INSTALLED │
Echo └────────────────────────────────────────────────────────────────┘
goto bad_end
:Help
Cls
Echo ┌────────────────────────────────────────────────────────────────┐
Echo │ OWL Basic Bookkeeping 2.X - Installation HELP │
Echo │ │
Echo │ │
Echo │ OWL Basic Bookkeeping must be installed on a HARD DISK DRIVE. │
Echo │ │
Echo │ The install program decompresses archive files and copies them │
Echo │ to subdirectory \OWL on the designated hard disk drive. If │
Echo │ \OWL does not exist on the designated hard disk, it will be │
Echo │ created for you. │
Echo │ │
Echo │ Syntax for the command is: INSTALLB d │
Echo │ │
Echo │ where "d" is the hard disk drive letter where you want │
Echo │ the program installed. │
Echo │ │
Echo │ Examples: INSTALLB C (Note no colon is typed) │
Echo │ INSTALLB D │
Echo │ etc. │
Echo │ │
Echo │ PROGRAM NOT INSTALLED │
Echo └────────────────────────────────────────────────────────────────┘
goto bad_end
REM ************************
REM End Of BBK Installation
REM ************************
:end
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ OWL BASIC BOOKKEEPING HAS BEEN INSTALLED ON %1:\OWL │
Echo │ │
Echo │ To run BASIC BOOKKEEPING type "BBK" │
Echo │ │
Echo │ Please review file README.BBK for important infor- │
Echo │ mation on configuring your system. │
Echo └──────────────────────────────────────────────────────┘
:bad_end